<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>订单编辑</title>
<link href="_css/style.css" rel="stylesheet" type="text/css" />
<script type="text/jscript" src="_script/jquery.js"></script>
<link rel="stylesheet" type="text/css" href="themes/blue/style.css" media="screen" />

<SCRIPT type=text/javascript>
$(function() {
	// 全选反选	
	$("#checkboxall").click(function(){
	    var checked_status = this.checked;   
		$("input[name='mid[]']").each(function(){this.checked = checked_status;});
		});		
});
function tools(){
var box_h="1";	
var top=$(document).scrollTop();
$("#topv")[0].value=top;
if(($.browser.msie==true)&&($.browser.version==6.0)){
if(top>box_h)$("#box_tools").css({position:"absolute",top:top-box_h});
}else{
if(top>box_h)$("#box_tools").css({position:"fixed",top:"-"&top+"px"});
}
if(top<=box_h)$("#box_tools").css({position:"static",top:0});
}

$(function(){
window.onscroll=tools;
window.onresize=tools;
});

</SCRIPT>
</head>
<body>
<form method="post" enctype="multipart/form-data" name="form" onSubmit="return checkform()">
  <div id="box_tools" class="floor_t">
    <div class="toolbgline">
      <table width="100%" border="0" cellspacing="2" cellpadding="0">
        <tr>
          <td width="28"><a href="javascript:location.reload();"><img src="images/admin.gif" alt="刷新" width="28" height="20" /></a></td>
          <td><span style="margin-top:10px">
            <input name="save2" type="submit" class="btn" value="确认提交" />
            <input name="reback2" type="reset" class="btn" value="重新填写" />
            </span></td>
          <td width="20"><input class="input w200"  style="width:20px;margin-right:2px" name="topv" type="text" id="topv" value="" /></td>
          <td width="1"></td>
        </tr>
      </table>
    </div>
  </div>
  <div class="floor_c">
    <div class="xn"></div>
    <div class="boxf">
      <div class="boxn">
        <script>    
function checkform()
{
/*	var title = document.getElementById("title");
	if(title.value=="")
	{
		alert("作品标题不能为空，请输入！");
		title.focus();
		return false;
	}*/

	
	document.form.reback.disabled=true;
	document.form.save.disabled=true;
	document.form.reback2.disabled=true;
	document.form.save2.disabled=true;
	//document.form.save.value='提交中';
	return true;
}
function nform()
{
	document.form.reback.disabled=false;
	document.form.save.disabled=false;
	return true;
}

</script>
        <table id="table" style="margin-top:0px" cellpadding="5" cellspacing="1">
          <tr class="th" >
            <td>管理员管理</td>
          </tr>
          <tr>
            <td height="22"  class="lh">管理用户名：
            <input name="adminname" type="text" class="input w200" id="adminname" value="<?php echo $evalue['adminname']?>" /> 
            管理密码：
            <input name="adminpwd" type="text" class="input w200" id="adminpwd" value="<?php echo $evalue['adminpwd']?>" /></td>
          </tr>
        </table>
		
		
		
		
        <table border="0" cellspacing="1" class="tablesorter">
		<thead>
          <tr>
		  	<th width="4%"><input type="checkbox" id=checkboxall name="chkall" value='ON' /></th>
            <th width="6%">ID</th>
			<th width="62%" >分类名称</th>
			<th width="21%" >代码</th>
          </thead>
<tbody>
<?php

	include_once(INC_PATH.'/tree.class.php');
	$tree=new Tree($menuarray,'mid','node');

	$categoryarr = $tree->getChilds(0);
	$space='|----';
	foreach ($categoryarr as $key => $catid) {
		$cat = $tree->getValue($catid);
		$cat['pre'] = $tree->getLayer($catid, $space);
		$listarr[$cat['mid']] = $cat;
	}

?>
<?php if(is_array($listarr)){foreach($listarr as $r){?>
          <tr>
            <td><input type="checkbox" name="mid[]" value="<?php echo $r['mid']?>" <?php if(in_array($r['mid'],explode(',',$evalue['adminmid'])))echo "checked='checked'"?>/></td>
            <td><?php echo $r['mid']?></td>
            <td><?php echo $r['pre'].$r['mname']?></td>
            <td><font color='red'><?php echo $r['mcode']?></font></font></td>
            </tr>
<?php }}?>
</tbody>
        </table>		
		
		
		
		
		
		
		
		
		
		
		
		
        <div align="center" style="margin-top:10px">
          <input name="aid" type="hidden" id="aid" value="<?php echo $aid?>"/>
		   <input name="action" type="hidden" id="action" value="<?php echo $action?>"/>
          <input name="save" type="submit" class="btn" value="确认提交">
          &nbsp;&nbsp;
          <input name="reback" type="reset" class="btn" value="重新填写">
        </div>
      </div>
    </div>
    <div class="xn"></div>
    <div class="x1"></div>
  </div>
</form>
<iframe src="about:blank" name="ActFrm" id="ActFrm" style="display:none"></iframe>
</body>
</html>
